package jvm;

import annotation.Student;

import java.util.ArrayList;

public class OutofMonoryTest {
    public static void main(String[] args) throws InterruptedException {
        ArrayList<Student> students = new ArrayList<>();
        for(;;){
            Student student = new Student();
            students.add(student);
            Thread.sleep(20);
            System.out.println(students.size());
        }
    }
}
